package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingMapper {
    void addOrderSetting(OrderSetting orderSetting);

    int findOrderSettingByOrderDate(Date orderDate);

    void updateOrderSettingByOrderDate(@Param("orderDate") Date orderDate, @Param("number") int number);

    List<Map> findOrderSettingByStartDateAndEndDate(@Param("startDate")String startDate,@Param("endDate") String endDate);

    void updateOrderSetting(@Param("orderDate")String orderDate, @Param("number")Integer number);

    int isOrderSettingOk(@Param("date") Date date);

    void deleteHistoryDateByMonth(@Param("startDate") String startDate, @Param("endDate") String endDate);
}
